<?php
/**
*	回调
*/
class callfunClassAction extends apiAction
{
	public $logincheck = false;
	
	
	public function indexAction()
	{
		$data = $this->getpostdata();
		if(!$data)return;
		$arr	= json_decode($data, true);
		$infotype = arrvalue($arr,'infotype');
		
		if($infotype=='editfile'){
			$filenum = $arr['filenum'];
			m('word')->update(array(
				'optdt' 	=> $this->now,
				'editname' 	=> $arr['editname'],
				'editnaid' 	=> $arr['editid'],
				'filesize' 	=> $arr['filesize'],
				'filesizecn' 	=> $arr['filesizecn'],
			), "`filenum`='$filenum'");
			m('word')->reloadworc();
		}
		
		return 'success,'.$infotype.'';
	}
	
}